package com.shycloud.mido.member.api.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.util.Date;

import lombok.Data;

/**
 * 视听受权码
 */
@Data
@TableName(value = "base_music_audition_code")
public class BaseMusicAuditionCode {
	@TableId(value = "id", type = IdType.AUTO)
	private Long id;

	/**
	 * 创建人ID
	 */
	@TableField(value = "create_admin_id")
	private Long createAdminId;

	/**
	 * 序列号
	 */
	@TableField(value = "audition_sn")
	private String auditionSn;

	/**
	 * 二维卡号
	 */
	@TableField(value = "audition_code")
	private String auditionCode;

	/**
	 * 曲集ID
	 */
	@TableField(value = "music_collection_id")
	private Integer musicCollectionId;

	/**
	 * 曲目ID
	 */
	@TableField(value = "music_id")
	private Integer musicId;

	/**
	 * 生成时间
	 */
	@TableField(value = "code_time")
	private Integer codeTime;

	/**
	 * 0：未使用，1：用户绑定
	 */
	@TableField(value = "code_flag")
	private String codeFlag;

	/**
	 * 分配时间
	 */
	@TableField(value = "create_time")
	private Date createTime;

	/**
	 * 状态，0-启用 1-禁用
	 */
	@TableField(value = "`status`")
	private String status;

	/**
	 * 绑定用户ID
	 */
	@TableField(value = "user_id")
	private Long userId;

	/**
	 * 绑定时间
	 */
	@TableField(value = "code_usetime")
	private Date codeUsetime;

	/**
	 * 受权机构
	 */
	@TableField(value = "authorized_agency")
	private String authorizedAgency;

	/**
	 * url
	 */
	@TableField(value = "url")
	private String url;

	/**
	 * 商城订单号
	 */
	@TableField(value = "`order`")
	private String order;

	public static final String COL_ID = "id";

	public static final String COL_CREATE_ADMIN_ID = "create_admin_id";

	public static final String COL_AUDITION_SN = "audition_sn";

	public static final String COL_AUDITION_CODE = "audition_code";

	public static final String COL_MUSIC_COLLECTION_ID = "music_collection_id";

	public static final String COL_MUSIC_ID = "music_id";

	public static final String COL_CODE_TIME = "code_time";

	public static final String COL_CODE_FLAG = "code_flag";

	public static final String COL_CREATE_TIME = "create_time";

	public static final String COL_STATUS = "status";

	public static final String COL_USER_ID = "user_id";

	public static final String COL_CODE_USETIME = "code_usetime";

	public static final String COL_AUTHORIZED_AGENCY = "authorized_agency";

	public static final String COL_URL = "url";

	public static final String COL_ORDER = "order";
}